﻿using System;

namespace IOPvsOOP.State.NOIF
{
    public class FooSingletonLazyFactoryNOIF 
    {
        public FooSingletonLazyFactoryNOIF()
        {
            Get = () =>
            {
                var foo = new Foo();
                Get = () => foo;
                return Get();
            };
        }

        public Func<Foo> Get { get; private set; }
    }
}